package com.cls.yygh.hosp.repository;

import com.cls.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @program: yygh
 * @description:
 * @author: LH
 * @create: 2021-11-08 09:51
 * @Platform: JDK 1.8.0_301
 **/
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    /**
    * @Description: 查询数据库是否存在
    * @Param: [hoscode]
    * @return: com.cls.yygh.model.hosp.Hospital
    * @Author: LH
    * @Date: 2021/11/8
    */
    Hospital getHospitalByHoscode(String hoscode);
}
